Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 20: Lighting Your World

../ch20/20fig13a.gif
Figure 20.13a

A directional light used to simulate the sun at sunrise. Compare with Figures 20.13b and c.

20fig13a.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
    children [
        DirectionalLight {
            direction  0.8 -0.2 -0.2
            intensity 1.0
            ambientIntensity 0.3
            color 1.0 0.6 0.0
        },
    # Vaulted ceiling and columns
        Inline {
            url "vaulted.wrl"
            bboxCenter 0.0 1.0 0.0
            bboxSize   6.0 2.0 6.0
        },
    # Floor
        Shape {
            appearance Appearance {
                material Material { }
            }
            geometry Box { size 16.0 0.01 16.0 }
        }
    ]
}